package lab02.Test04;

/**
 * Created by 李晓容 on 2017/12/31.
 */
public class Staff {
    //属性：员工姓名、员工号码、员工基本薪水、员工薪水增长额
    char name;
    char number;
    float salary;
    float increase;
    //行为、方法：构造方法、获取员工姓名、获取员工号码、获取员工基本薪水、计算薪水增长额及计算增长后的工资总额
    char getName(){
        return name ;
    }

    char getNumber() {
        return number;
    }

    float getSalary() {
        return salary;
    }

    float getIncrease() {
        return increase;
    }
    float sum(){
        float sumSalary=0;
        sumSalary=sumSalary*(1+increase);
        return sumSalary;
    }

    public static void main(String[] args) {

    }
}
